<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRepair extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('repair', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('order_id')->comment('订单号');
            $table->string('username')->comment('服务人员姓名');
            $table->string('address')->comment('服务地址');
            $table->string('service_at')->nullable()->comment('服务时间');
            $table->integer('number')->comment('服务数量');
            $table->integer('community_id')->comment('小区id');
            $table->string('desc')->comment('问题描述');
            $table->integer('status')->comment('记录状态');
            $table->integer('type')->comment('服务类型1:维修');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('repair');
    }
}
